package com.qfedu.controller;

import com.qfedu.service.SysCarService;
import com.qfedu.vo.BaseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/car")
public class SysCarController{
    @Autowired
    SysCarService sysCarService;
    @RequestMapping("/findcar")
    public BaseResult findcar(Integer cid){
        return sysCarService.findcar(cid);
    }
    @RequestMapping("/price")
    public BaseResult price (Integer getid){
        return sysCarService.findByPrice(getid);
    }
    @RequestMapping("/number")
    public BaseResult number (Integer getid){
        return  sysCarService.findByNumber(getid);
    }


}